package com.ssy.lingxi.product.api.hystrix;

import com.ssy.lingxi.common.exception.BusinessException;
import com.ssy.lingxi.common.model.vo.SelectVO;
import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.product.api.feign.ISelectProductFeign;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 业务模块-属性管理熔断服务实现类
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/6/24
 */
@Component
@Qualifier("selectProductHystrix")
public class SelectProductHystrix implements ISelectProductFeign {

    @Override
    public Wrapper<List<SelectVO>> getSelectCustomerCategory(String name) {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }

    @Override
    public Wrapper<Integer> getMaxCustomerCategory() {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }

    @Override
    public Wrapper<List<SelectVO>> getCustomerCategoryByParentId(Long parentId) {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }

    @Override
    public Wrapper<List<SelectVO>> getCategoryByParentId(Long parentId) {
        throw new BusinessException(ResponseCode.SERVICE_PRODUCT_ERROR);
    }
}
